<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateProjectCheckTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('project_check', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('uid')->nullable(false)->comment('操作用户id');
            $table->tinyInteger('status')->default(1)->comment('是否通过，1通过，2不通过');
            $table->string('remark', 255)->default('')->comment('审核意见');
            $table->integer('pid')->comment('项目id');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('project_check');
    }
}
